package com.education.wisdom.service.impl;

import com.education.common.utils.Convert;
import com.education.wisdom.mapper.JrUserConentMapper;
import com.education.wisdom.pojo.JrUserConent;
import com.education.wisdom.service.JrUserConentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 职业达人直播收藏 服务层实现
 *
 * @author d
 * @date 2020-07-13 14:37:53
 */
@Service
public class JrUserConentServiceImpl implements JrUserConentService {

    @Autowired
    private JrUserConentMapper jrUserConentMapper;

    //查询职业达人直播收藏信息
    @Override
    public JrUserConent selectJrUserConentById(Integer id) {
        return jrUserConentMapper.selectJrUserConentById(id);
    }

    // 查询职业达人直播收藏列表
    @Override
    public List<JrUserConent> selectJrUserConentList(JrUserConent jrUserConent) {
        return jrUserConentMapper.selectJrUserConentList(jrUserConent);
    }

    // 新增职业达人直播收藏
    @Override
    public int insertJrUserConent(JrUserConent jrUserConent) {
        return jrUserConentMapper.insertJrUserConent(jrUserConent);
    }

    //修改职业达人直播收藏
    @Override
    public int updateJrUserConent(JrUserConent jrUserConent) {
        return jrUserConentMapper.updateJrUserConent(jrUserConent);
    }

    //删除职业达人直播收藏对象
    @Override
    public int deleteJrUserConentByIds(String ids) {
        return jrUserConentMapper.deleteJrUserConentByIds(Convert.toStrArray(ids));
    }

    @Override
    public int deleteJrUserConentById(Integer id) {
        return jrUserConentMapper.deleteJrUserConentById(id);
    }

    @Override
    public int deleteJrUserConentByIdUserId(JrUserConent jrUserConent) {
        return jrUserConentMapper.deleteJrUserConentByIdUserId(jrUserConent);
    }
}